<form id="pagerForm" method="post" action="/index.php?act=visit&st=main">
	<input type="hidden" name="pageNum" value="{$pageNum}" />
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
	<input type="hidden" name="visit_unit" value="{$visit_unit}" />
	<input type="hidden" name="sales_name" value="{$sales_name}" />
</form>

<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="/index.php?act=visit&st=main" method="post">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				
				<td>
					被访单位：<input type="text" name="visit_unit" value="{$visit_unit}" />
				</td>
				<td>
					业务员姓名：<input type="text" name="sales_name" value="{$sales_name}" />
				</td>
				<td>
					<ul>
						<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
					</ul>
				</td>
			</tr>
		</table>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="/index.php?act=visit&st=visitAdd" target="dialog" rel="add_order" title="添加走访信息" mask="true" width="910" height="400"><span>添加</span></a></li>
			<li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="ids" href="/index.php?act=visit&st=visitDelete" class="delete" postType="string"><span>删除</span></a></li>
			<li><a class="edit" href="/index.php?act=visit&st=visitEdit&id={sid_user}" target="dialog" rel="edit_order" title="编辑走访信息" mask="true" width="910" height="400"><span>修改</span></a></li>
			<li><a class="icon" href="/index.php?act=visit&st=visitExport" target="dwzExport" targetType="navTab" title="确定要导出这些记录吗?"><span>导出EXCEL</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="113">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th width="80">业务微信ID</th>
				<th width="80">业务员姓名</th>
				<th width="80">所在部门</th>
				<th width="80">负责区域</th>
				<th width="80">负责产品</th>
				<th width="80">被走访单位</th>
				<th width="80">用户地址</th>
				<th width="80">接待人姓名</th>
				<th width="80">接待人职务</th>
				<th width="80">接待人电话</th>
				<th width="80">接待人邮箱</th>
				<th width="80">处理状态</th>
				<th width="80">走访日期</th>
				<!--<th width="80">用户情况</th>
				<th width="80">反馈问题</th>
				<th width="80">需求信息</th>-->
				<th width="80">处理日期</th>
			</tr>
		</thead>
		<tbody>
			{foreach item=visit from=$visit_list}
			<tr target="sid_user" rel="{$visit.visit_log_id}">
				<td><input name="ids" value="{$visit.visit_log_id}" type="checkbox"></td>
				<td><div style="width:200px">{$visit.sales_id}</div></td>
				<td>{$visit.sales_name}</td>
				<td>{$visit.sales_part}</td>
				<td>{$visit.sales_area}</td>
				<td>{$visit.sales_produce}</td>
				<td>{$visit.visit_unit}</td>
				<td>{$visit.visit_addr}</td>
				<td>{$visit.recevie_name}</td>
				<td>{$visit.recevie_study}</td>
				<td>{$visit.recevie_mobile}</td>
				<td>{$visit.recevie_email}</td>
				<td>{$visit.handle_msg}</td>
				<td>{$visit.recevie_date}</td>
				<!--<td>{$visit.recevie_facts}</td>
				<td>{$visit.recevie_question}</td>
				<td>{$visit.recevice_mind}</td>-->				
				<td>{$visit.handle_date}</td>
			</tr>
			{/foreach}
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				{foreach item=num from=$shoNum}
				<option value="{$num}" {if $numPerPage eq $num}selected{/if}>{$num}</option>
				{/foreach}
			</select>
			<span>条，共{$total}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$total}" numPerPage="{$numPerPage}" pageNumShown="{$pageNumShown}" currentPage="{$pageNum}"></div>
	</div>
</div>